package com.jiangjiang.eshop.logistics.calculator;

import com.jiangjiang.eshop.logistics.dto.FreightTemplateDTO;
import com.jiangjiang.eshop.order.dto.OrderInfoDTO;
import com.jiangjiang.eshop.order.dto.OrderItemDTO;
import org.springframework.stereotype.Component;

/**
 * @ClassName DefaultFreightCalculator
 * @Description TODO
 * @Author jhw
 * @Date 2021/9/20 22:22
 * @Version 1.0
 **/
@Component
public class DefaultLogisticsFreightCalculator implements FreightCalculator{
    /**
     * 默认的运费计算期
     * @param freightTemplate 运费模板
     * @param order 订单数据
     * @param orderItem 订单条目
     * @return
     */
    @Override
    public Double calculate(FreightTemplateDTO freightTemplate, OrderInfoDTO order, OrderItemDTO orderItem) {
        return 0.0;
    }
}
